﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayRTSArmyManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.RTS.ArmyManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 14, 6, 4);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "PreloadResourceConfig", _m_PreloadResourceConfig);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRtsResourceManager", _m_GetRtsResourceManager);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShakeScreen", _m_ShakeScreen);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopShakeScreen", _m_StopShakeScreen);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartLoadResource", _m_StartLoadResource);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitDrawLineTools", _m_InitDrawLineTools);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWorldCameraReady", _m_OnWorldCameraReady);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnterSandBox", _m_EnterSandBox);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LeaveSandBox", _m_LeaveSandBox);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanPlayAudio", _m_CanPlayAudio);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsCustomHudMarchType", _m_IsCustomHudMarchType);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCameraRotation", _m_SetCameraRotation);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "ResourceManager", _g_get_ResourceManager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CameraRotation", _g_get_CameraRotation);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ElementManager", _g_get_ElementManager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "HudManager", _g_get_HudManager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "MarchManager", _g_get_MarchManager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsInSandBox", _g_get_IsInSandBox);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "ElementManager", _s_set_ElementManager);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "HudManager", _s_set_HudManager);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "MarchManager", _s_set_MarchManager);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsInSandBox", _s_set_IsInSandBox);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 15, 9, 8);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "TryLoadResource", _m_TryLoadResource_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetResourceById", _m_GetResourceById_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RecoverResourceById", _m_RecoverResourceById_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEffectById", _m_GetEffectById_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RecoverEffectById", _m_RecoverEffectById_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlaySpriteAnimator", _m_PlaySpriteAnimator_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSoldierSprite", _m_GetSoldierSprite_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAndCreateSoldierSprite", _m_LoadAndCreateSoldierSprite_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpriteCreatorByOriginNameAndTeam", _m_GetSpriteCreatorByOriginNameAndTeam_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSoldierSpriteCreatorScale", _m_GetSoldierSpriteCreatorScale_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCreator", _m_GetCreator_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveSprite", _m_RemoveSprite_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveModel", _m_RemoveModel_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetModel", _m_GetModel_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SpriteParticleSystemManager", _g_get_SpriteParticleSystemManager);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "EnableRtsUnitTest", _g_get_EnableRtsUnitTest);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsDebug", _g_get_IsDebug);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsChasingDebug", _g_get_IsChasingDebug);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsDebugMarch", _g_get_IsDebugMarch);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsDebugSpriteLoading", _g_get_IsDebugSpriteLoading);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NeverCheckSimpleMode", _g_get_NeverCheckSimpleMode);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "loadingCallBack", _g_get_loadingCallBack);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SpriteParticleSystemManager", _s_set_SpriteParticleSystemManager);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "EnableRtsUnitTest", _s_set_EnableRtsUnitTest);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsDebug", _s_set_IsDebug);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsChasingDebug", _s_set_IsChasingDebug);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsDebugMarch", _s_set_IsDebugMarch);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsDebugSpriteLoading", _s_set_IsDebugSpriteLoading);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "NeverCheckSimpleMode", _s_set_NeverCheckSimpleMode);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "loadingCallBack", _s_set_loadingCallBack);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.RTS.ArmyManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.RTS.ArmyManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Transform _root = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
                    
                    gen_to_be_invoked.Initialize( _root );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PreloadResourceConfig(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    XLua.LuaTable _resourceConfig = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));
                    XLua.LuaTable _resourcePoolConfig = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    
                    gen_to_be_invoked.PreloadResourceConfig( _resourceConfig, _resourcePoolConfig );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetRtsResourceManager(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetRtsResourceManager(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TryLoadResource_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.TryLoadResource( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetResourceById_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action<UnityEngine.GameObject>>(L, 3)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    bool _isForceGet = LuaAPI.lua_toboolean(L, 2);
                    System.Action<UnityEngine.GameObject> _action = translator.GetDelegate<System.Action<UnityEngine.GameObject>>(L, 3);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetResourceById( _id, _isForceGet, _action );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    bool _isForceGet = LuaAPI.lua_toboolean(L, 2);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetResourceById( _id, _isForceGet );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetResourceById( _id );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager.GetResourceById!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RecoverResourceById_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    UnityEngine.GameObject _obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.RecoverResourceById( _id, _obj );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetEffectById_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    bool _isRelatedToSelf = LuaAPI.lua_toboolean(L, 2);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetEffectById( _id, _isRelatedToSelf );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RecoverEffectById_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    UnityEngine.GameObject _obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    bool _isRelatedToSelf = LuaAPI.lua_toboolean(L, 3);
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.RecoverEffectById( _id, _obj, _isRelatedToSelf );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlaySpriteAnimator_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.Mars.Got.SpriteAnim.AnimSprite _sprite = (Yoozoo.Mars.Got.SpriteAnim.AnimSprite)translator.GetObject(L, 1, typeof(Yoozoo.Mars.Got.SpriteAnim.AnimSprite));
                    Yoozoo.Mars.Got.SpriteAnim.SPRITE_ACTION_ENUM _action;translator.Get(L, 2, out _action);
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.PlaySpriteAnimator( _sprite, _action );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSoldierSprite_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& translator.Assignable<Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator>(L, 1)) 
                {
                    Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator _creator = (Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator)translator.GetObject(L, 1, typeof(Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator));
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetSoldierSprite( _creator );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _modelName = LuaAPI.lua_tostring(L, 1);
                    int _team = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetSoldierSprite( _modelName, _team );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    string _modelName = LuaAPI.lua_tostring(L, 1);
                    int _count = LuaAPI.xlua_tointeger(L, 2);
                    int _team = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetSoldierSprite( _modelName, _count, _team );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager.GetSoldierSprite!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAndCreateSoldierSprite_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _modelName = LuaAPI.lua_tostring(L, 1);
                    int _team = LuaAPI.xlua_tointeger(L, 2);
                    System.Action<Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator> _onloadOver = translator.GetDelegate<System.Action<Yoozoo.Mars.Got.SpriteAnim.AnimSpriteCreator>>(L, 3);
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.LoadAndCreateSoldierSprite( _modelName, _team, _onloadOver );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSpriteCreatorByOriginNameAndTeam_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _modelName = LuaAPI.lua_tostring(L, 1);
                    int _team = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetSpriteCreatorByOriginNameAndTeam( _modelName, _team );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSoldierSpriteCreatorScale_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _creatorName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetSoldierSpriteCreatorScale( _creatorName );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetCreator_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _name = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetCreator( _name );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveSprite_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.Mars.Got.SpriteAnim.AnimSprite _sprite = (Yoozoo.Mars.Got.SpriteAnim.AnimSprite)translator.GetObject(L, 1, typeof(Yoozoo.Mars.Got.SpriteAnim.AnimSprite));
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.RemoveSprite( _sprite );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveModel_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.Gameplay.RTS.IModel _model = (Yoozoo.Gameplay.RTS.IModel)translator.GetObject(L, 1, typeof(Yoozoo.Gameplay.RTS.IModel));
                    
                    Yoozoo.Gameplay.RTS.ArmyManager.RemoveModel( _model );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetModel_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) 
                {
                    int _index = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetModel( _index );
                        translator.PushAny(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _modelName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Gameplay.RTS.ArmyManager.GetModel( _modelName );
                        translator.PushAny(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager.GetModel!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShakeScreen(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ShakeScreen(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopShakeScreen(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.StopShakeScreen(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartLoadResource(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    System.Action<int, int, string> __loadingCallBack = translator.GetDelegate<System.Action<int, int, string>>(L, 2);
                    
                    gen_to_be_invoked.StartLoadResource( __loadingCallBack );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitDrawLineTools(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.InitDrawLineTools(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnWorldCameraReady(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnWorldCameraReady(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EnterSandBox(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.EnterSandBox(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LeaveSandBox(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.LeaveSandBox(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CanPlayAudio(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _sourceTeam = LuaAPI.xlua_tointeger(L, 2);
                    int _targetTeam = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.CanPlayAudio( _sourceTeam, _targetTeam );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _sourceTeam = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.CanPlayAudio( _sourceTeam );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ArmyManager.CanPlayAudio!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsCustomHudMarchType(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Gameplay.RTS.EClientMarchType _clientMarchType;translator.Get(L, 2, out _clientMarchType);
                    
                        var gen_ret = gen_to_be_invoked.IsCustomHudMarchType( _clientMarchType );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCameraRotation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _rotation = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetCameraRotation( _rotation );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Instance(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Gameplay.RTS.ArmyManager.Instance);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ResourceManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ResourceManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CameraRotation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CameraRotation);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_SpriteParticleSystemManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Gameplay.RTS.ArmyManager.SpriteParticleSystemManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ElementManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ElementManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_HudManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.HudManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MarchManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.MarchManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_EnableRtsUnitTest(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.EnableRtsUnitTest);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsDebug(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.IsDebug);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsChasingDebug(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.IsChasingDebug);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsDebugMarch(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.IsDebugMarch);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsDebugSpriteLoading(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.IsDebugSpriteLoading);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_NeverCheckSimpleMode(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Gameplay.RTS.ArmyManager.NeverCheckSimpleMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_loadingCallBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Gameplay.RTS.ArmyManager.loadingCallBack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsInSandBox(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsInSandBox);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_SpriteParticleSystemManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Gameplay.RTS.ArmyManager.SpriteParticleSystemManager = (Yoozoo.Mars.Got.SpriteAnim.SpriteParticleSystemManager)translator.GetObject(L, 1, typeof(Yoozoo.Mars.Got.SpriteAnim.SpriteParticleSystemManager));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ElementManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.ElementManager = (Yoozoo.Gameplay.RTS.ElementManager)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.RTS.ElementManager));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_HudManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.HudManager = (Yoozoo.Gameplay.RTS.HudManager)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.RTS.HudManager));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_MarchManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.MarchManager = (Yoozoo.Gameplay.RTS.MarchManager)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.RTS.MarchManager));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_EnableRtsUnitTest(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.EnableRtsUnitTest = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_IsDebug(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.IsDebug = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_IsChasingDebug(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.IsChasingDebug = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_IsDebugMarch(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.IsDebugMarch = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_IsDebugSpriteLoading(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.IsDebugSpriteLoading = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_NeverCheckSimpleMode(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ArmyManager.NeverCheckSimpleMode = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_loadingCallBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Gameplay.RTS.ArmyManager.loadingCallBack = translator.GetDelegate<System.Action<int, int, string>>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_IsInSandBox(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ArmyManager gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ArmyManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.IsInSandBox = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
